


<!doctype html>
<html lang="en" class="fullscreen-bg">

<head>
	<title>Login | Klorofil - Free Bootstrap Dashboard Template</title>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
	<!-- VENDOR CSS -->
	<link rel="stylesheet" href="resources/assets/css/bootstrap.min.css">
	<link rel="stylesheet" href="resources/assets/vendor/font-awesome/css/font-awesome.min.css">
	<link rel="stylesheet" href="resources/assets/vendor/linearicons/style.css">
	<!-- MAIN CSS -->
	<link rel="stylesheet" href="resources/assets/css/main.css">
	<!-- FOR DEMO PURPOSES ONLY. You should remove this in your project -->
	<link rel="stylesheet" href="resources/assets/css/demo.css">
	<!-- GOOGLE FONTS -->
	<!-- <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700" rel="stylesheet"> -->
	<!-- ICONS -->
	<link rel="apple-touch-icon" sizes="76x76" href="resources/assets/img/apple-icon.png">
	<link rel="icon" type="image/png" sizes="96x96" href="resources/assets/img/favicon.png">
</head>

<body>
	<!-- WRAPPER -->
	<div id="wrapper">
		<div class="vertical-align-wrap">
			<div class="vertical-align-middle">
				<div class="auth-box ">
					<div class="left">
						<div class="content">
							<div class="header">
								<div class="logo text-center">请登陆</div>
								
							</div>
							<form class="form-auth-small" action=" " method="post">
								<div class="form-group">
									<input type="text" class="form-control" placeholder="用户名" id="signin-email" name="username" value="<?php echo (!empty($_COOKIE['username']))?$_COOKIE['username']:''; ?>">
										</div>
								<div class="form-group">
									<label for="signin-password" class="control-label sr-only">Password</label>
									<input type="password" value="<?php echo (!empty($_COOKIE['password']))?$_COOKIE['password']:''; ?>" class="form-control" id="signin-password"  placeholder="密码" name="password">
									<br>
									<div class="form-group">
									<input type="text" class="contro" name="code" placeholder="验证码" style="float:left">
									<span style="width:10px;float:left"></span>
									<img src="index.php?c=admin&a=code&admin=1"  style="float:left">
										</div>



								</div>
								<br>
								<div class="form-group clearfix">
									<label class="fancy-checkbox element-left">
										<input name="check" type="checkbox" <?php echo (!empty($_COOKIE['username']))?'checked':'';  ?> value="1">
										<span>记住我</span>
									</label>





									<label class="fancy-checkbox element-left">
										<input id="auto" name="auto" type="checkbox"  value="1" <?php echo (!empty($_COOKIE['auto_login']))?'checked':'';  ?>>
										<span>自动登录</span>
									</label>




								</div>
								<button type="submit" class="btn btn-primary btn-lg btn-block">登录</button>
								<div class="bottom">
									<span class="helper-text"><i class="fa fa-lock"></i> <a href="#">Forgot password?</a></span>
								</div>
							</form>
						</div>
					</div>
					<div class="right">
						<div class="overlay"></div>
						<div class="content text">
							<h1 class="heading">Free Bootstrap dashboard template</h1>
							<p>by The Develovers</p>
						</div>
					</div>
					<div class="clearfix"></div>
				</div>
			</div>
		</div>
	</div>
	<!-- END WRAPPER -->
</body>

</html>
<script type="text/javascript" src="resources/assets/jquery-3.2.1.min.js"></script>
<script>
$("#auto").click(function(){
  	
	if( $(this).is(':checked')){

         $('input[name=check]').prop('checked',true);

	}
	
	}
  )
$('img').click(function(){
	var src = $(this).attr('src');
	    src = src+'&'+Math.random()*10;
	    $(this).attr('src',src);
})

// var $code = $('.contro').text();

</script>